package com.bulletelc.apollopre.entity;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * author: lhl
 * date  : 2018/01/24
 * desc  : 全国地址json数据源
 */

public class JsonBean  implements IPickerViewData{

    /**
     * name : 云南
     * id : 25
     * cityList : [{"name":"临沧市","pid":25,"id":392,"districtList":[{"name":"临翔区","pid":392,"id":2921},{"name":"云县","pid":392,"id":2923},{"name":"凤庆县","pid":392,"id":2922},{"name":"双江拉祜族佤族布朗族傣族自治县","pid":392,"id":2926},{"name":"永德县","pid":392,"id":2924},{"name":"沧源佤族自治县","pid":392,"id":2928},{"name":"耿马傣族佤族自治县","pid":392,"id":2927},{"name":"镇康县","pid":392,"id":2925}]},{"name":"丽江市","pid":25,"id":390,"districtList":[{"name":"华坪县","pid":390,"id":2909},{"name":"古城区","pid":390,"id":2906},{"name":"宁蒗彝族自治县","pid":390,"id":2910},{"name":"永胜县","pid":390,"id":2908},{"name":"玉龙纳西族自治县","pid":390,"id":2907}]},{"name":"保山市","pid":25,"id":388,"districtList":[{"name":"施甸县","pid":388,"id":2891},{"name":"昌宁县","pid":388,"id":2893},{"name":"腾冲市","pid":388,"id":2894},{"name":"隆阳区","pid":388,"id":2890},{"name":"龙陵县","pid":388,"id":2892}]},{"name":"大理白族自治州","pid":25,"id":397,"districtList":[{"name":"云龙县","pid":397,"id":2971},{"name":"剑川县","pid":397,"id":2973},{"name":"南涧彝族自治县","pid":397,"id":2968},{"name":"大理市","pid":397,"id":2963},{"name":"宾川县","pid":397,"id":2966},{"name":"巍山彝族回族自治县","pid":397,"id":2969},{"name":"弥渡县","pid":397,"id":2967},{"name":"永平县","pid":397,"id":2970},{"name":"洱源县","pid":397,"id":2972},{"name":"漾濞彝族自治县","pid":397,"id":2964},{"name":"祥云县","pid":397,"id":2965},{"name":"鹤庆县","pid":397,"id":2974}]},{"name":"德宏傣族景颇族自治州","pid":25,"id":398,"districtList":[{"name":"梁河县","pid":398,"id":2977},{"name":"瑞丽市","pid":398,"id":2975},{"name":"盈江县","pid":398,"id":2978},{"name":"芒市","pid":398,"id":2976},{"name":"陇川县","pid":398,"id":2979}]},{"name":"怒江傈僳族自治州","pid":25,"id":399,"districtList":[{"name":"兰坪白族普米族自治县","pid":399,"id":2983},{"name":"泸水市","pid":399,"id":2980},{"name":"福贡县","pid":399,"id":2981},{"name":"贡山独龙族怒族自治县","pid":399,"id":2982}]},{"name":"文山壮族苗族自治州","pid":25,"id":395,"districtList":[{"name":"丘北县","pid":395,"id":2957},{"name":"富宁县","pid":395,"id":2959},{"name":"广南县","pid":395,"id":2958},{"name":"文山市","pid":395,"id":2952},{"name":"砚山县","pid":395,"id":2953},{"name":"西畴县","pid":395,"id":2954},{"name":"马关县","pid":395,"id":2956},{"name":"麻栗坡县","pid":395,"id":2955}]},{"name":"昆明市","pid":25,"id":385,"districtList":[{"name":"东川区","pid":385,"id":2862},{"name":"五华区","pid":385,"id":2858},{"name":"呈贡区","pid":385,"id":2863},{"name":"安宁市","pid":385,"id":2871},{"name":"官渡区","pid":385,"id":2860},{"name":"宜良县","pid":385,"id":2866},{"name":"富民县","pid":385,"id":2865},{"name":"寻甸回族彝族自治县","pid":385,"id":2870},{"name":"嵩明县","pid":385,"id":2868},{"name":"晋宁县","pid":385,"id":2864},{"name":"盘龙区","pid":385,"id":2859},{"name":"石林彝族自治县","pid":385,"id":2867},{"name":"禄劝彝族苗族自治县","pid":385,"id":2869},{"name":"西山区","pid":385,"id":2861}]},{"name":"昭通市","pid":25,"id":389,"districtList":[{"name":"大关县","pid":389,"id":2899},{"name":"威信县","pid":389,"id":2904},{"name":"巧家县","pid":389,"id":2897},{"name":"彝良县","pid":389,"id":2903},{"name":"昭阳区","pid":389,"id":2895},{"name":"水富县","pid":389,"id":2905},{"name":"永善县","pid":389,"id":2900},{"name":"盐津县","pid":389,"id":2898},{"name":"绥江县","pid":389,"id":2901},{"name":"镇雄县","pid":389,"id":2902},{"name":"鲁甸县","pid":389,"id":2896}]},{"name":"普洱市","pid":25,"id":391,"districtList":[{"name":"墨江哈尼族自治县","pid":391,"id":2913},{"name":"孟连傣族拉祜族佤族自治县","pid":391,"id":2918},{"name":"宁洱哈尼族彝族自治县","pid":391,"id":2912},{"name":"思茅区","pid":391,"id":2911},{"name":"景东彝族自治县","pid":391,"id":2914},{"name":"景谷傣族彝族自治县","pid":391,"id":2915},{"name":"江城哈尼族彝族自治县","pid":391,"id":2917},{"name":"澜沧拉祜族自治县","pid":391,"id":2919},{"name":"西盟佤族自治县","pid":391,"id":2920},{"name":"镇沅彝族哈尼族拉祜族自治县","pid":391,"id":2916}]},{"name":"曲靖市","pid":25,"id":386,"districtList":[{"name":"会泽县","pid":386,"id":2879},{"name":"宣威市","pid":386,"id":2880},{"name":"富源县","pid":386,"id":2878},{"name":"师宗县","pid":386,"id":2876},{"name":"沾益区","pid":386,"id":2873},{"name":"罗平县","pid":386,"id":2877},{"name":"陆良县","pid":386,"id":2875},{"name":"马龙县","pid":386,"id":2874},{"name":"麒麟区","pid":386,"id":2872}]},{"name":"楚雄彝族自治州","pid":25,"id":393,"districtList":[{"name":"元谋县","pid":393,"id":2936},{"name":"南华县","pid":393,"id":2932},{"name":"双柏县","pid":393,"id":2930},{"name":"大姚县","pid":393,"id":2934},{"name":"姚安县","pid":393,"id":2933},{"name":"楚雄市","pid":393,"id":2929},{"name":"武定县","pid":393,"id":2937},{"name":"永仁县","pid":393,"id":2935},{"name":"牟定县","pid":393,"id":2931},{"name":"禄丰县","pid":393,"id":2938}]},{"name":"玉溪市","pid":25,"id":387,"districtList":[{"name":"元江哈尼族彝族傣族自治县","pid":387,"id":2889},{"name":"华宁县","pid":387,"id":2885},{"name":"峨山彝族自治县","pid":387,"id":2887},{"name":"新平彝族傣族自治县","pid":387,"id":2888},{"name":"易门县","pid":387,"id":2886},{"name":"江川区","pid":387,"id":2882},{"name":"澄江县","pid":387,"id":2883},{"name":"红塔区","pid":387,"id":2881},{"name":"通海县","pid":387,"id":2884}]},{"name":"红河哈尼族彝族自治州","pid":25,"id":394,"districtList":[{"name":"个旧市","pid":394,"id":2939},{"name":"元阳县","pid":394,"id":2947},{"name":"屏边苗族自治县","pid":394,"id":2943},{"name":"建水县","pid":394,"id":2944},{"name":"开远市","pid":394,"id":2940},{"name":"弥勒市","pid":394,"id":2942},{"name":"河口瑶族自治县","pid":394,"id":2951},{"name":"泸西县","pid":394,"id":2946},{"name":"石屏县","pid":394,"id":2945},{"name":"红河县","pid":394,"id":2948},{"name":"绿春县","pid":394,"id":2950},{"name":"蒙自市","pid":394,"id":2941},{"name":"金平苗族瑶族傣族自治县","pid":394,"id":2949}]},{"name":"西双版纳傣族自治州","pid":25,"id":396,"districtList":[{"name":"勐海县","pid":396,"id":2961},{"name":"勐腊县","pid":396,"id":2962},{"name":"景洪市","pid":396,"id":2960}]},{"name":"迪庆藏族自治州","pid":25,"id":400,"districtList":[{"name":"德钦县","pid":400,"id":2985},{"name":"维西傈僳族自治县","pid":400,"id":2986},{"name":"香格里拉市","pid":400,"id":2984}]}]
     */

    private String name;
    private int id;
    private List<CityListBean> cityList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<CityListBean> getCityList() {
        return cityList;
    }

    public void setCityList(List<CityListBean> cityList) {
        this.cityList = cityList;
    }

    @Override
    public String getPickerViewText() {
        return this.name;
    }

    public static class CityListBean implements IPickerViewData {
        /**
         * name : 临沧市
         * pid : 25
         * id : 392
         * districtList : [{"name":"临翔区","pid":392,"id":2921},{"name":"云县","pid":392,"id":2923},{"name":"凤庆县","pid":392,"id":2922},{"name":"双江拉祜族佤族布朗族傣族自治县","pid":392,"id":2926},{"name":"永德县","pid":392,"id":2924},{"name":"沧源佤族自治县","pid":392,"id":2928},{"name":"耿马傣族佤族自治县","pid":392,"id":2927},{"name":"镇康县","pid":392,"id":2925}]
         */

        private String name;
        private int pid;
        private int id;
        private List<DistrictListBean> districtList;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getPid() {
            return pid;
        }

        public void setPid(int pid) {
            this.pid = pid;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public List<DistrictListBean> getDistrictList() {
            return districtList;
        }

        public void setDistrictList(List<DistrictListBean> districtList) {
            this.districtList = districtList;
        }

        @Override
        public String getPickerViewText() {
            return this.name;
        }

        public static class DistrictListBean implements  IPickerViewData {
            /**
             * name : 临翔区
             * pid : 392
             * id : 2921
             */

            private String name;
            private int pid;
            private int id;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getPid() {
                return pid;
            }

            public void setPid(int pid) {
                this.pid = pid;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            @Override
            public String getPickerViewText() {
                return this.name;
            }
        }
    }
}
